package com.xiaoyu.base.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "tb_user_kv")
public class UserKV {

    @DatabaseField(uniqueCombo = true)
    public String uid;
    @DatabaseField(uniqueCombo = true)
    public String k;
    @DatabaseField
    public String v;

    @DatabaseField(generatedId = true)
    private int id;

    public UserKV() {
    }

    public UserKV(String uid, String k, String v) {
        this.uid = uid;
        this.k = k;
        this.v = v;
    }

    @Override
    public String toString() {
        return "UserKV {" +
                "uid=" + uid +
                ", k=" + k +
                ", v=" + v +
                '}';
    }
}
